package a66weding.com.jiehuntong.pager.homeproduct;

import android.app.Activity;
import android.content.Context;
import android.view.View;

import a66weding.com.jiehuntong.application.DataWareHourse;
import a66weding.com.jiehuntong.application.GlobalApplication;
import a66weding.com.jiehuntong.common.utils.CacheUtils;

/**
 * Created by Administrator on 2016/1/1.
 */
public abstract class BaseProductPager {
    public Activity activity;
    public View rootview;
    public  int i_id;


    public BaseProductPager(Activity activity){
        this.activity= (Activity) activity;
        rootview= initView();
        boolean mIslogin = ((GlobalApplication) activity.getApplication()).isLogin();
        if(mIslogin) {
            i_id = DataWareHourse.getInstance().getmUser().getData().get(0).getI_Id();
        }
    }


    public abstract View initView();


    public void initData(){

    }

    public String getTitle(){

        return "";
    }


}
